import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { IndexComponent } from './index/index.component';
import { ArticleListComponent } from './article/list/article-list.component';
import { RouterModule, Routes } from '@angular/router';
import { ROUTES } from './routes/routes.module';
import { ArticleComponent } from './article/detail/article.component';
import { HeaderComponent } from './header/header.component';
import { CloudBoostService } from './service/cloud-boost.service';
import { CFG } from './service/cfg.service';
import { SlideMenuComponent } from './slideMenu/slide-menu.component'
@NgModule({
  declarations: [
    AppComponent,
    IndexComponent,
    ArticleListComponent,
    ArticleComponent,
    HeaderComponent,
    SlideMenuComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    RouterModule.forRoot(ROUTES)
  ],
  providers: [CloudBoostService, {
    provide: 'CFG',
    useValue: CFG,
  }],
  bootstrap: [AppComponent]
})
export class AppModule { }
